package com.snow.useviewdemo.util.db;

import com.tencent.mmkv.MMKV;

/**
 * Created by zhaoyingtao
 * Date: 2020/7/24
 * Describe:MMKV封装管理类
 * https://github.com/Tencent/MMKV
 */
public class AppMMKVHelper {

    public static void saveString(String key, String content) {
        MMKV kv = MMKV.defaultMMKV();
        kv.encode(key, content);
    }

    public static String getString(String key, String def) {
        return MMKV.defaultMMKV().getString(key, def);
    }
}
